<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/utilities/fpdf/fpdf.php';
	
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterEmail {
		/**
		 * Constructor of the presenter
		 */
		public function __construct() {}
		
		/**
		 * Method to execute when user clicks on creating a new Send Mail
		 */
		public function clickSendEmail($email)  {
		
			$GLOBALS['debug'] -> log($email,"Entro al presentador send email en el presenador");
			$command = CommandFactory ::  createCommandSendEmail($email);
			$command -> execute();		
			$GLOBALS['debug'] -> log($email,"Salio del presentador send email en el presenador");
			return $command -> getResult();
		}
		
	
	
			
	}
?>